classdef PSA < Instrument
    
    properties
        startFreq;
        stopFreq;
        centerFreq;
        span;
        RBW;
        sweepPoints;
    end
    
    methods
        
        function this = PSA(GPIB_controller, GPIB_address, address)
            this = this@Instrument(GPIB_controller, GPIB_address, address);
        end
        
        function this = set.startFreq(this,value)
            this.setStartFreq();
            this.startFreq = value;
        end
        
        function this = set.stopFreq(this,value)
            this.setStopFreq();
            this.stopFreq = value;
        end
        
        function this = set.centerFreq(this,value)
            this.setCenterFreq();
            this.centerFreq = value;
        end
        
        function this = set.span(this,value)
            this.setSpan();
            this.span = value;
        end
        
        function this = set.RBW(this,value)
            this.setRBW();
            this.RBW = value;
        end
        
        function this = set.sweepPoints(this,value)
            this.setSweepPoints();
            this.sweepPoints = value;
        end
        
        
    end
    
    methods
        setStartFreq(this)
        setStopFreq(this)
        setCenterFreq(this)
        setSpanFreq(this)
        setRBW(this)
        getTraceData(this)
        setSweepPoints(this)
    end
end